home *** CD-ROM | disk | FTP | other *** search
/ GameStar 1998 May / GameStar 05-1998 - Heft-CD.iso / DEMOS / Incoming / asc / canaveral / canaveral_arcade.mdl next >
Encoding:
Text File  |  1998-02-20  |  16.1 KB  |  821 lines

  1. drag_coeff    0.01        
  2. gravity        2.2
  3.  
  4. #=====================================================
  5. # Weapons ODL
  6.  
  7. ;GREEN ENERGY LASER    hitpoints    30
  8. ;GREEN LASER         hitpoints    32
  9. ;BLUE LASER            hitpoints    16
  10. ;RED LASER            hitpoints    24
  11. ;PURPLE LASER        hitpoints    12
  12.  
  13. ;PLASMA BOLT 1        hitpoints    30
  14. ;PLASMA BOLT 2        hitpoints    25
  15. ;PLASMA BOLT 3        hitpoints    15
  16. ;PLASMA BOLT 4        hitpoints    20
  17.  
  18. ;ROCKET 1            hitpoints    150
  19. ;ROCKET 2            hitpoints    500
  20. ;GUIDED MISSILE        hitpoints    120
  21. ;TRACER SHOT 1        hitpoints    110
  22.  
  23. ;BOMB 1                hitpoints    500
  24. ;DESIGNATOR            hitpoints    0
  25. ;FOAM                hitpoints    0
  26.  
  27. ;ENERGY 1            hitpoints    150
  28. ;ENERGY 2            hitpoints    50
  29.  
  30. ;BIG SHELL            hitpoints    32
  31. #=====================================================
  32.  
  33. set_inert "Lbase1"
  34. set_inert "Lbase2"
  35. set_inert "Lbase3"
  36. set_inert "Lbase4"
  37. set_inert "GPa"
  38. set_inert "GPb"
  39. set_inert "GPc"
  40. set_inert "GPd"
  41. set_inert "GPe"
  42. set_inert "GPf"
  43.  
  44. create hero "plfight"
  45.     label "P1hero"
  46.     position 0 -100 0 relative to "replen1"
  47.     forward -0.5 0 -0.8 up 0 1 0
  48.     armed_with "RED LASER"    rate 3
  49.     secondary_armed_with "ENERGY 1" rate 24 rounds 20
  50.     task
  51.         wait_until flag 0 set
  52.          playercontrols
  53.         position 0 -100 0 relative to "replen1"
  54.     end
  55.  
  56. create "heavylaser"
  57.     label "P3hero"
  58.     position 43579 -1430 42541
  59.     forward -0.8 0 0.5 up 0 1 0
  60.     armed_with "GREEN LASER" rate 1
  61.     inert
  62.  
  63. create "rack"
  64.     position 44670 -1415 42136
  65.     forward 0.5 0 0.8 up 0 1 0
  66.     armed_with "GUIDED MISSILE"    rate 32
  67.     task
  68.         slave_to "P3hero"
  69.     end
  70.  
  71. create "heavylaser"
  72.     label "P6hero"
  73.     position 31853 -132 43076
  74.     forward 0.5 0 -0.8 up 0 1 0
  75.     armed_with "GREEN LASER" rate 1
  76.     inert
  77.  
  78. create "rack"
  79.     position 32517 -117 43741
  80.     forward 0.5 0 0.8 up 0 1 0
  81.     armed_with "GUIDED MISSILE"    rate 32
  82.     task
  83.         slave_to "P6hero"
  84.     end
  85.  
  86. create "heavylaser"
  87.     label "P9hero"
  88.     position 35273.8 -1780 12904.8
  89.     forward 0 0 1 up 0 1 0
  90.     armed_with "GREEN LASER" rate 1
  91.     inert
  92.  
  93. create "rack"
  94.     position 0 -115 0 relative to "GPf"
  95.     forward 0 0 1 up 0 1 0
  96.     armed_with "GUIDED MISSILE"    rate 32
  97.     task
  98.         slave_to "P9hero"
  99.     end
  100.  
  101. create "shuttle"
  102.     label "shuttle1"
  103.     mission_critical
  104.     position 30852 -1961 38089
  105.     forward -1 0 0 up 0 1 0 
  106.     mission_critical
  107.  
  108. create "shuttle"
  109.     label "shuttle2"
  110.     mission_critical
  111.     position 52079 -1961 50399
  112.     forward 0 0 1 up 0 1 0 
  113.     mission_critical
  114.     inert
  115.  
  116. create "shuttle"
  117.     label "shuttle3"
  118.     mission_critical
  119.     position 30280 -1961 48756
  120.     forward 1 0 0 up 0 1 0
  121.     mission_critical
  122.     inert
  123.  
  124. create "shuttle"
  125.     label "shuttle4"
  126.     mission_critical
  127.     position 47603 -1961 34739
  128.     forward 1 0 0 up 0 1 0 
  129.     mission_critical
  130.     inert
  131.  
  132. setsfx "shuttle1" off
  133. setsfx "shuttle2" off
  134. setsfx "shuttle3" off
  135. setsfx "shuttle4" off
  136.  
  137. set_inert "vab"
  138.  
  139. #===================================
  140. #      PHASE 1
  141. #===================================
  142.  
  143. phasestart
  144.  
  145. #....................................................................
  146.     phasemessage 76    60
  147.     play_speech "defend shuttle"
  148. #....................................................................
  149. playcdslow
  150.  
  151. clear_flag all
  152. set_flag 11
  153.  
  154. camera_task
  155.     hud off
  156.     cam_pos 600 -200 -600 attached_to "hero"
  157.     cam_focus "hero"
  158.     dolly 0
  159.     set_flag 0
  160.  
  161.     cam_goto -600 -200 -600
  162.     wait_until distance_between "hero" and "replen1" > 500
  163.  
  164.     cam_mode cockpit
  165. end
  166.  
  167. collision "shuttle1" as "hero"
  168.  
  169. procedure "P1a"
  170.  
  171.     wait_until number_of "aair"<4
  172.     wait_until flag 11 set
  173.  
  174.     create "lfighter"
  175.         position 100 -4700 -17000 relative toxz "shuttle1"
  176.         towards "hero"
  177.         armed_with "PLASMA BOLT 1" rate 16
  178.         task
  179.             do
  180.                 goto 35795.3 -1500 33421.8
  181.                 shoot "hero"
  182.                 goto 31381.1 -4900 39794.2
  183.                 goto 27251.1 -1100 39144.8
  184.                 shoot "hero"
  185.                 goto 27506.5 -2800 35668.7
  186.             forever
  187.  
  188.         end
  189.  
  190.     clear_flag 11
  191.     set_flag 12
  192. end_procedure terminate after 3 loops
  193.  
  194. procedure "P1b"
  195.  
  196.     wait_until number_of "aair"<4
  197.     wait_until flag 12 set
  198.  
  199.     create "lfighter"
  200.         position 500 -3500 -17000 relative toxz "shuttle1"
  201.         towards "hero"
  202.         armed_with "PLASMA BOLT 3" rate 132
  203.         task
  204.             do
  205.                 goto 27506.5 -1102.94 35668.7
  206.                 goto 27251.1 -2811.08 39144.8
  207.                 shoot "shuttle1"
  208.                 goto 31381.1 -1453.35 39794.2
  209.                 shoot "hero"
  210.                 goto 35795.3 -4969.24 33421.8
  211.                 shoot "shuttle1"
  212.             until "shuttle1" destroyed
  213.         end
  214.  
  215.     clear_flag 12
  216.     set_flag 13
  217.  
  218. end_procedure terminate after 3 loops
  219.             
  220. procedure "P1c"
  221.  
  222.     wait_until number_of "aair"<4
  223.     wait_until flag 13 set
  224.  
  225.     create "lfighter"
  226.         position 1800 -3700 -17000 relative toxz "shuttle1"
  227.         towards "hero"
  228.         armed_with "PLASMA BOLT 1" rate 132
  229.         task                            
  230.             do
  231.                 goto 35795.3 -1500 33421.8
  232.                 shoot "shuttle1"
  233.                 goto 31381.1 -4900 39794.2
  234.                 shoot "hero" bomb
  235.                 goto 27251.1 -1100 39144.8
  236.                 shoot "shuttle1"
  237.                 goto 27506.5 -2800 35668.7
  238.             until "shuttle1" destroyed
  239.         end
  240.  
  241.     clear_flag 13
  242.     set_flag 14
  243.  
  244.  
  245. end_procedure terminate after 3 loops
  246.  
  247. procedure "P1d"
  248.  
  249.     wait_until number_of "aair"<4
  250.     wait_until flag 14 set
  251.  
  252.     create "lfighter"
  253.         position -1500 -4200 -17500 relative toxz "shuttle1"
  254.         towards "hero"
  255.         armed_with "PLASMA BOLT 1" rate 16
  256.         task
  257.             do
  258.                 goto 27506.5 -1102.94 35668.7
  259.                 shoot "hero"
  260.                 goto 27251.1 -2811.08 39144.8
  261.                 shoot "hero"
  262.                 goto 31381.1 -1453.35 39794.2
  263.                 shoot "hero"
  264.                 goto 35795.3 -4969.24 33421.8
  265.             forever
  266.         end
  267.  
  268.     clear_flag 14
  269.     set_flag 11
  270.     pause 100
  271.  
  272. end_procedure terminate after 3 loops
  273.  
  274. wait_until proc "P1a" terminated
  275. wait_until proc "P1b" terminated
  276. wait_until proc "P1c" terminated
  277. wait_until proc "P1d" terminated
  278.  
  279. wait_until number_of "aair" = 0
  280.  
  281.  
  282. #....................................................................
  283.     phasemessage 31    60
  284.     play_speech "incoming fire"
  285. #....................................................................
  286.  
  287. procedure "P1a"
  288.  
  289.     create "lfighter"
  290.         position 500 -4200 -17500 relative toxz "shuttle1"
  291.         towards "hero"
  292.         armed_with "PLASMA BOLT 1" rate 16
  293.         task
  294.             do
  295.                 goto 27506.5 -1102.94 35668.7
  296.                 shoot "hero"
  297.                 goto 27251.1 -2811.08 39144.8
  298.                 shoot "hero"
  299.                 goto 31381.1 -1453.35 39794.2
  300.                 shoot "hero"
  301.                 goto 35795.3 -4969.24 33421.8
  302.             forever
  303.         end
  304.  
  305.     pause 50
  306.  
  307. end_procedure terminate after 5 loops
  308.  
  309. wait_until proc "P1a" terminated
  310. wait_until number_of "aair"=0
  311.  
  312.  
  313.  
  314. set_inert "P1hero"
  315.  
  316.  
  317. #....................................................................
  318.     phasemessage 10 60
  319.     play_speech "phase complete"
  320. #....................................................................
  321.  
  322. hud off
  323. camera
  324.     attached_to "hero"
  325.     position 600 -300 -600
  326.     pointing_at "hero"
  327.     dolly 1
  328.  
  329. pause 40
  330.  
  331.  
  332. ;-------------------------------------------------------
  333. ;PHASE 2
  334. ;-------------------------------------------------------
  335.  
  336. phasestart
  337. clear_flag all
  338.  
  339. #....................................................................
  340.     phasemessage 55    60
  341.     play_speech "destroy all alien craft"
  342. #....................................................................
  343.  
  344. set_inert "shuttle1"
  345.  
  346. create "helicopter"
  347.     label "P2heli"
  348.     position 0 -150 0 relative to "replen2"
  349.     forward -0.5 0 -0.8 up 0 1 0
  350.     armed_with "PURPLE LASER"    rate 2
  351.     secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
  352.  
  353. switch_hero "P2heli"
  354.     task
  355.         wait_until flag 0 set
  356.         playercontrols
  357.             break_task_if flag 10 set
  358.         position 0 -150 0 relative to "replen2"
  359.     end
  360.  
  361. camera_task
  362.     hud off
  363.     cam_pos 600 -200 -600 attached_to "hero"
  364.     cam_focus "hero"
  365.     dolly 0
  366.     set_flag 0
  367.  
  368.     cam_goto -600 -200 -600
  369.     wait_until distance_between "hero" and "replen2" > 500
  370.  
  371.     cam_mode cockpit
  372. end
  373.  
  374. pause 20
  375. kill group "aair"
  376.  
  377. camera last cockpit
  378.  
  379. mission_critical "Sshuttle"
  380.  
  381. create "atank"
  382.     label "P2ta"
  383.     position 47700 on ground 59580
  384.     forward -1 0 0 up 0 1 0
  385.     armed_with "RED LASER"    rate 48
  386.     task
  387.         do
  388.             patrol_towards
  389.                 point 40523 on ground 59985
  390.                 point 40384 on ground 28305
  391.                 point 41424 on ground 33675
  392.                 point 41475 on ground 56881
  393.  
  394.             if distance_between "Sshuttle" and me <8000
  395.                 shoot "Sshuttle"
  396.             else
  397.                 shoot
  398.         forever
  399.     end
  400.  
  401. create "atank"
  402.     label "P2tb"
  403.     position 45700 on ground 59580
  404.     forward -1 0 0 up 0 1 0
  405.     armed_with "RED LASER"    rate 48
  406.     task
  407.         do
  408.             patrol_towards
  409.                 point 40523 on ground 59985
  410.                 point 40384 on ground 28305
  411.                 point 41424 on ground 33675
  412.                 point 41475 on ground 56881
  413.  
  414.             if distance_between "Sshuttle" and me <8000
  415.                 shoot "Sshuttle"
  416.             else
  417.                 shoot
  418.  
  419.         forever
  420.     end
  421.  
  422.  
  423. create "atank"
  424.     label "P2tc"
  425.     position 43700 on ground 59580
  426.     forward -1 0 0 up 0 1 0
  427.     armed_with "RED LASER"    rate 48
  428.     task
  429.         do
  430.             patrol_towards
  431.                 point 40523 on ground 59985
  432.                 point 40384 on ground 28305
  433.                 point 41424 on ground 33675
  434.                 point 41475 on ground 56881
  435.  
  436.             if distance_between "Sshuttle" and me <8000
  437.                 shoot "Sshuttle"
  438.             else
  439.                 shoot
  440.  
  441.         forever
  442.     end
  443.  
  444. create "atank"
  445.     label "P2td"
  446.     position 41700 on ground 59580
  447.     forward -1 0 0 up 0 1 0
  448.     armed_with "RED LASER"    rate 48
  449.     task
  450.         do
  451.             patrol_towards
  452.                 point 40523 on ground 59985
  453.                 point 40384 on ground 28305
  454.                 point 41424 on ground 33675
  455.                 point 41475 on ground 56881
  456.  
  457.             if distance_between "Sshuttle" and me <10000
  458.                 shoot "Sshuttle"
  459.             else
  460.                 shoot
  461.  
  462.         forever
  463.     end
  464.  
  465.  
  466. create "hfighter"
  467.     position -17000 -3500 0 relative to "P2tb"
  468.     towards "hero"
  469.     armed_with "PLASMA BOLT 3"    rate 16
  470.     task
  471.         defend "P2ta"
  472.         attack "hero"
  473.     end
  474.  
  475. create "hfighter"
  476.     position 0 -3500 17000 relative to "P2td"
  477.     towards "hero"
  478.     armed_with "PLASMA BOLT 3"    rate 16
  479.     task
  480.         defend "P2td"
  481.         attack "hero"
  482.     end
  483.  
  484. procedure "P2a"
  485.     wait_until number_of "aair"<2
  486.     create "lfighter"
  487.         position 500 -3300 15000 local to "hero"
  488.         towards "hero"
  489.         armed_with "RED LASER"    rate 16
  490.         task
  491.             attack "hero"
  492.         end
  493.     pause 75
  494. end_procedure terminate after 4 loops
  495.  
  496. wait_until distance_between "hero" and 35021 -122 20963 > 2000
  497. camera cockpit
  498.  
  499.  
  500. procedure "P2b"
  501.     set_waypoint nearest "aland"
  502. end_procedure
  503.  
  504.  
  505. #....................................................................
  506.     phasemessage 29    60
  507.     play_speech "incoming alien tanks"
  508. #....................................................................
  509.  
  510.  
  511. wait_until number_of "aland"=0
  512. end_procedure "P2b"
  513. clear_waypoint
  514.  
  515. wait_until proc "P2a" terminated
  516. wait_until number_of "fighters" = 0
  517. wait_until number_of "aair" = 0
  518.  
  519. set_inert "P2heli"
  520.  
  521. #....................................................................
  522.     phasemessage 63    60
  523.     play_speech "engage and destroy alien craft"
  524. #....................................................................
  525.  
  526. procedure "P2a"
  527.     wait_until number_of "aair"<2
  528.     create "lfighter"
  529.         position 500 -3300 15000 local to "hero"
  530.         towards "hero"
  531.         armed_with "RED LASER"    rate 16
  532.         task
  533.             attack "hero"
  534.         end
  535.     pause 75
  536. end_procedure terminate after 4 loops
  537.  
  538. wait_until proc "P2a" terminated
  539. wait_until number_of "aair" = 0
  540.  
  541. #=========================
  542. #=======take off shuttle 1
  543. set_flag 10
  544. hud off
  545.  
  546. camera
  547.     position 31080 -3200 39790
  548.     pointing_at "shuttle1"
  549.     dolly 1
  550.  
  551. set_operate "shuttle1" "brocket"
  552. setsfx "shuttle1" on
  553. pause 50
  554. #....................................................................
  555.     phasemessage 22    60
  556.     play_speech "5-4-3-2-1"
  557. #....................................................................
  558. set_task "shuttle1"
  559.         goto 30852 -19000 38089
  560.     end
  561.  
  562. mission_uncritical "shuttle1" 
  563. pause 250
  564.  
  565.  
  566. camera
  567.     position 37918.1 -444 38493
  568.     pointing_at 31184.3 -1500 38026
  569.     dolly 0
  570.  
  571. pause 250
  572. #....................................................................
  573.     phasemessage 10 60
  574.     play_speech "phase complete"
  575. #....................................................................
  576.  
  577.  
  578. pause 50
  579. kill "shuttle1"
  580.  
  581. ;-------------------------------------------------------
  582. ;PHASE 3
  583. ;-------------------------------------------------------
  584. phasestart
  585. clear_flag all
  586.  
  587. #....................................................................
  588.     phasemessage 76    60
  589.     play_speech "defend shuttle"
  590. #....................................................................
  591.  
  592. set_volatile "shuttle2"
  593. collision "shuttle2" as "hero"
  594.  
  595.  
  596. switch_hero "P3hero"
  597.     task
  598.         wait_until flag 0 set
  599.         playercontrols
  600.     end
  601.  
  602. hud off
  603. camera
  604.     attached_to "hero"
  605.     position 600 -300 -600
  606.     pointing_at "hero"
  607.     dolly 0
  608. pause 40
  609. set_flag 0
  610. camera cockpit
  611.  
  612.  
  613. ;-----------
  614. ;-----wave 1
  615.  
  616. procedure "P3a"
  617.     create "lfighter"
  618.         position 33598.5 -975 43475.9
  619.         towards "hero"
  620.         armed_with "RED LASER"    rate 4
  621.         task
  622.             goto 35055.6 -2355 43383.3
  623.             shoot "hero"
  624.             goto 40346.4 -815 42596.3
  625.             shoot "hero"
  626.             goto 42402.2 -2575 42465.6
  627.             do
  628.                 goto 46530 -1820 45260
  629.                 shoot "shuttle2"
  630.                 goto 51849.3 -4935 48428.7
  631.                 goto 57336 -2385 54081.6
  632.                 shoot "shuttle2"
  633.                 goto 47118.4 -2545 53544.1
  634.             forever
  635.         end
  636.  
  637.         pause 50
  638. end_procedure terminate after 4 loops
  639.  
  640. wait_until proc "P3a" terminated
  641. wait_until number_of "aair"<=1
  642.  
  643.  
  644. ;------------------------------------
  645. ;-----------I hope you dont see these
  646. create "atank"
  647.     position 40521.5 on ground 25356.6
  648.  
  649.     towards "hero"
  650.     armed_with "RED LASER"    rate 1
  651.     task
  652.          goto 41084 on ground 34339
  653.          goto 40971 on ground 45640
  654.          goto 49070 on ground 45852
  655.     end
  656.  
  657.  
  658. create "atank"
  659.     position 40904 on ground 59258
  660.     towards "hero"
  661.     armed_with "RED LASER"    rate 4
  662.     task
  663.         goto 41360 on ground 45680
  664.         goto 47981 on ground 47362
  665.         stop
  666.         do
  667.             shoot "shuttle2"
  668.         until "shuttle2" destroyed
  669.     end
  670.  
  671.  
  672. #....................................................................
  673.     phasemessage 29    60
  674.     play_speech "incoming alien tanks"
  675. #....................................................................
  676.  
  677.  
  678. ;-----------
  679. ;-----wave 2
  680.  
  681. procedure "P3a"
  682.     create "lfighter"
  683.         position 45125.4 -1345.37 58910.3
  684.  
  685.         towards "hero"
  686.         armed_with "RED LASER"    rate 8
  687.         task
  688.             goto 49272.1 -1345.33 56080.5
  689.             goto 47864.1 -3145.14 47779.8
  690.             shoot "hero"
  691.             attack "hero"
  692.         end
  693.  
  694.     pause 100
  695. end_procedure terminate after 4 loops
  696.  
  697. procedure "P3b"
  698.     create "lfighter"
  699.         position 43834.2 -1275 58445.7
  700.  
  701.  
  702.         towards "hero"
  703.         armed_with "RED LASER"    rate 8
  704.         task
  705.             goto 40922.4 -1275 58057.9
  706.             shoot "hero"
  707.             attack "hero"
  708.         end
  709.  
  710.     pause 100
  711. end_procedure terminate after 4 loops
  712.  
  713.  
  714. wait_until proc "P3a" terminated
  715. wait_until proc "P3b" terminated
  716. wait_until number_of "aair"=0
  717.  
  718.  
  719. ;-----------
  720. ;-----wave 3
  721.  
  722. procedure "P3a"
  723.     create "lfighter"
  724.         position 43636.9 -315 35543.6
  725.  
  726.         towards "hero"
  727.         armed_with "RED LASER"    rate 4
  728.         task
  729.             goto 43653.4 -1375 36203.3
  730.             goto 43180.9 -2315 40081.3
  731.             shoot "hero"
  732.             attack "hero"
  733.         end
  734.     pause 50
  735.  
  736. end_procedure terminate after 4 loops
  737.  
  738. wait_until proc "P3a" terminated
  739. wait_until number_of "aair"<=1
  740.  
  741. ;-----------
  742. ;-----wave 4
  743.  
  744. procedure "P3a"
  745.     create "lfighter"
  746.         position 51279.6 -645 42720.5
  747.  
  748.         towards "shuttle2"
  749.         armed_with "RED LASER"    rate 4
  750.         task
  751.             do
  752.                 goto 53733.6 -1285 47461.4
  753.                 shoot "shuttle2"
  754.                 goto 55690.5 -2045 54245.7
  755.                 goto 50195.2 -1685 54767.3
  756.                 goto 45946.6 -1785 46847.5
  757.                 shoot "hero"
  758.  
  759.             forever
  760.         end
  761.     pause 50
  762.  
  763. end_procedure terminate after 4 loops
  764.  
  765.  
  766. wait_until proc "P3a" terminated
  767. wait_until number_of "aair"<=3
  768.  
  769.  
  770. create "bomber"
  771.     label "P3bomb"
  772.     position 26030.4 -3994 43725.3
  773.     towards "shuttle2"
  774.     armed_with "ENERGY 1"    rate 1
  775.     task
  776.         do
  777.             goto 38402.5 -4104 47904.7
  778.             shoot
  779.             goto 43687.3 -4104 53981.7
  780.             shoot
  781.             goto 54038.4 -4254 50721.1
  782.             shoot
  783.             goto 53934.9 -4254 44352.3
  784.             shoot
  785.             goto 48042.8 -4254 44208.1
  786.             shoot
  787.         forever
  788.     end
  789.  
  790. #....................................................................
  791.     phasemessage 28    60
  792.     play_speech "incoming alien bomber"
  793. #....................................................................
  794.  
  795.  
  796. wait_until number_of "bombers"=0
  797.  
  798. #....................................................................
  799.     phasemessage 10 60
  800.     play_speech "phase complete"
  801. #....................................................................
  802.  
  803.  
  804. hud off
  805. camera
  806.     attached_to "hero"
  807.     position 600 -300 -600
  808.     pointing_at "hero"
  809.     dolly 1
  810. pause 40
  811.  
  812. ;-------------------------------------------------------
  813. ;PHASE 8
  814. ;-------------------------------------------------------
  815.  
  816.  
  817.  
  818. ;-------------------------------------------------------
  819. ;END OF SCENARIO
  820. ;-------------------------------------------------------
  821.